<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>

<div align="center">

	
	<logic:notPresent name="autentificado">
	  <h2>Acceso No permitido</h2>
	</logic:notPresent>
	
	<logic:present name="autentificado">


	<html:link action="GestionMenu">[Menu]</html:link>
	<p><h3>Hay <bean:write name="nInscritos"/> usuarios inscritos</h3></p>
	
	<logic:notEmpty name="inscritos">
	<TABLE BORDER=1 WIDTH=750>
	
		<tr bgcolor=CCCCFF><h3> <td>Nombre</td><td>Apellidos</td><td>Pagado</td> <td>Ponencias</td><td>Mail</td></h3></tr>
		<logic:iterate id="usr" name="inscritos">
		
		<tr>
			<td><bean:write name="usr" property="nombre"/></td>
			<td><bean:write name="usr" property="apellidos"/></td>
			
			<td>
				<logic:equal name="usr" property="pagado" value="true">PAGADO</logic:equal>
				<logic:equal name="usr" property="pagado" value="false">NO HA PAGADO<br>
				<html:link action="MarcarPagado" paramName="usr" paramProperty="email" paramId="usr">Marcar como pagado</html:link></logic:equal>
				
			</td>
			
			<td>
			<html:link action="GestionPonenciasFiltradas" paramId="usuario" paramName="usr"
			paramProperty="email">Ver</html:link>
			</td>
			
			<td>
			<html:link action="EscribirMail" paramId="para" paramName="usr"
			paramProperty="email">Enviar Email</html:link>
			</td>
				
		</tr>
		</logic:iterate>
	
	
	</TABLE>
	</logic:notEmpty>
	</logic:present>
</div>